﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ue.Qcdz.Domain.Tags;

namespace Ue.Qcdz.Repositories.Articles
{
    public class ArticleProxy : Domain.Articles.Article
    {

        public ArticleProxy(
            object key,
            string title,
            string subTitle,
            string summary,
            string reference,
            string keyword,
            string editor,
            string imageUrl,            
            string content,
            int displayOrder,
            int isTop,
            int status,
            string titleColor,
            int IsStrong,
            DateTime createOn,
            string relevance,
            int clickCount,
            int isFocus
            )
            : base(key)
        {
            this.Title = title;            
            this.SubTitle = subTitle;
            this.Summary = summary;
            this.Reference = reference;
            this.Keyword = keyword;
            this.Editor = editor;
            this.ImageUrl = imageUrl;
            this.Content = content;
            this.DisplayOrder = displayOrder;
            this.IsTop = isTop;
            this.Status = status;
            this.TitleColor = titleColor;
            this.IsStrong = IsStrong == 1 ? true : false;
            base.CreateOn = createOn;
            this.Relevance = relevance;
            this.ClickCount = clickCount;
            this.IsFocus = isFocus;
        }

        public new Tag Tag
        {
            set { base.Tag = value; }
            get { return base.Tag; }
            
        }
    }
}
